<? include ("../init.php") ?>
<? include ("../header.php") ?>
<? include ("../menu.php") ?>
<? include ("submenu.php") ?>
<?php
  $sql = "SELECT * FROM hs_contact";
  $line = $db->queryUniqueObject($sql);
?>
<div id = "body">

<h1><?_l('edit-contact')?></h1>
<div class = "clear"></div>

<form method="post" action="update.php" class = "form">
  
  <div class = "field"><span><?_l('company name')?></span><input type = "text" name = "c_company_name" class = "input size1" value = "<?=$line->c_company_name?>" /></div>
  <div class = "field"><span><?_l('address')?></span><textarea name = "c_address" class = "mceNoEditor"><?=$line->c_address?></textarea></div>
  <div class = "field"><span><?_l('tel')?></span><input type = "text" name = "c_tel" class = "input size1" value = "<?=$line->c_tel?>" /></div>
  <div class = "field"><span><?_l('fax')?></span><input type = "text" name = "c_fax" class = "input size1" value = "<?=$line->c_fax?>" /></div>
  <div class = "field"><span><?_l('e-mail')?></span><input type = "text" name = "c_email" class = "input size1" value = "<?=$line->c_email?>" /></div>
  <div class = "field"><span><?_l('Open hours')?></span><input type = "text" name = "c_openhour" class = "input size1" value = "<?=$line->c_openhour?>" /></div>
  <div class = "field"><span><?_l('Google Map Latitude')?></span><input type = "text" name = "c_latitude" class = "input size1" value = "<?=$line->c_latitude?>" /></div>
  <div class = "field"><span><?_l('Google Map Longtitude')?></span><input type = "text" name = "c_longtitude" class = "input size1" value = "<?=$line->c_longtitude?>" /></div>
  
  
  <hr>
  <div class = "field"><label></label><input type = "submit" value = "<?=__l('update')?>" class = "btn">&nbsp;<a href = "#" class = "btn" onclick="javascript:history.back(1)"><?_l('cancel')?></a></div>
</form>

</div>


<style>
  .form span {
    width:150px;
    text-transform:capitalize;
  }
  textarea.mceNoEditor{
    height: 150px;
    width:300px;
  }
</style>
<script>
  $(document).ready(function(){
    
  });
</script>
<? include ("../footer.php") ?>